#include <iostream>
#include "FigureContainer.h"

using namespace std;

int main()
{
    FigureContainer fg;

    vector<double> r{9, 5, 8, 7, 0};
    fg.addFigure(rect, r);
    cout << fg[0]->type() << " ";

    vector<double> e{0, 0, 2, 5, 0};
    fg.addFigure(ell, e);
    cout << fg[1]->type() << " ";

    vector<double> t{2, 4, 5, 5, 4, 7, 0};
    fg.addFigure(tri, t);
    cout << fg[2]->type();

    try {
        fg.outputFile(R"(C:\Users\user\Desktop\figures.txt)");
    }
    catch(exception& e) {
        cout << "exception caught: " << e.what() << endl;
    }

    cout << endl << "Happy end" << endl;
    return 0;
}
